package com.mes.cloud.dao;

import com.mes.cloud.dto.BmeBcReportDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
* <bme_bc_report基础表>
*
* @author  xhy
* @date    2019/06/11 16:00
* @version 1.0
*/
@Mapper
@Repository
public interface BmeBcReportDAO {

    /**
     * 根据条件获取bme_bc_report基础表列表
     *
     * @author xhy
     * @date   2019/06/11 16:00
     * @param  condition
     * @return JSONResult
    */
    List<BmeBcReportDTO> getBmeBcReportList(Map<Object, Object> condition);


    /**
     * 获取bme_bc_report基础表的最大记录数
     *
     * @author xhy
     * @date   2019/06/11 16:00
     * @param condition
     * @return long
    */
    long getBmeBcReportCount(Map<Object, Object> condition);

    /**
    * 新增bme_bc_report基础表
    *
    * @author xhy
    * @date   2019/06/11 16:00
    * @param  bmeBcReportDTO bme_bc_report基础表对象
    * @return long
    */
    long insertBmeBcReport(BmeBcReportDTO bmeBcReportDTO);

    /**
    * 更新bme_bc_report基础表
    *
    * @author xhy
    * @date   2019/06/11 16:00
    * @param  bmeBcReportDTO bme_bc_report基础表对象]
    * @return long
    */
    long updateBmeBcReport(BmeBcReportDTO bmeBcReportDTO);

    /**
    * 删除bme_bc_report基础表
    *
    * @author xhy
    * @date   2019/06/11 16:00
    * @param  id  bme_bc_report基础表标识]
    * @return long
    */
    long delBmeBcReportById(String id);

    /**
    * 根据bme_bc_report基础表标识获取bme_bc_report基础表
    *
    * @author xhy
    * @date   2019/06/11 16:00
    * @param  id  bme_bc_report基础表标识]
    * @return BmeBcReportDTO
    */
    BmeBcReportDTO getBmeBcReportById(String id);

    long enable(Map<Object, Object> map);

    Object batchDelete(List<String> ids);

    int insertExcel(@Param("paramList")List<BmeBcReportDTO> paramList);

    /**
     * 启用禁用 批量
     *
     * @param ids
     * @return
     */
    Long batchEnable(List<Long> ids);
}
